package com.salesmanager.core.modules.cms.common;

import com.salesmanager.core.business.content.model.OutputContentFile;
import com.salesmanager.core.business.generic.exception.ServiceException;

import java.io.InputStream;

/**
 * Created by Liutong on 9/16/15.
 * 内容文件接口
 */
public interface CmsFileManager  {
    /**
     * put
     * @param path
     * @param fileName
     * @param in
     * @throws ServiceException
     */
    void put (String path,String fileName,InputStream in) throws ServiceException;

    /**
     * get
     * @param path
     * @param FileName
     * @return
     * @throws ServiceException
     */
    OutputContentFile get(String path,String FileName) throws ServiceException;

    /**
     * remove
     * @param path
     * @param FileName
     * @throws ServiceException
     */
    void remove(String path,String FileName) throws ServiceException;
}
